package com.wjw.mapper;

import com.wjw.model.Employee_table;
import com.wjw.model.Employee_type_table;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface EmployeeTableMapper {
    List<Employee_table> findAll();
    List<Employee_table> findByPage(@Param("page") int page, @Param("limit") int limit);
    int add(Employee_table employee_table);
    int delete(String id);
    int change(Employee_table employee_table);
    Employee_type_table getEmployeeTypeName(int id);
    Employee_type_table getEmployeeTypeId(String name);
}
